﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="View_RangeValidator1.aspx.cs" Inherits="AFCEPF.Samples.WebSamples.Controls2.View_RangeValidator1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <h3>
        Range (example 1)
    </h3>
    Enter a number from 1 to 100:
    <asp:TextBox ID="tbox1" runat="server" />
    <br />
    <br />
    <asp:Button ID="Button1" Text="Submit" OnClick="OnButtonClick" runat="server" />
    <br />
    <br />
    <asp:Label ID="Label1" runat="server" />
    <br />
    <asp:RangeValidator ID="RangeValidator1" ControlToValidate="tbox1" MinimumValue="1"
        MaximumValue="100" Type="Integer" EnableClientScript="false" Text="The value must be from 1 to 100!"
        runat="server" />
    <br />
    Try to change the "EnableClientScript" property of the RangeValidator to avoid a
    postback until the two values to compare are equal.
    
</asp:Content>
